package com.system.test.base;

public class Outer {
	private String name;
	private int age;

	public static class Builder {
		private String name;
		private int age;

		public Builder withName(String name) {
			this.name = name;
			return this;
		}

		public Builder withAge(int age) {
			this.age = age;
			return this;
		}

		public Outer build() {
			return new Outer(this);
		}
	}

	private Outer(Builder b) {
		this.age = b.age;
		this.name = b.name;
	}

	public Outer getOuter() {
		Outer outer = new Outer.Builder().withName("Yang Liu").withAge(18).build();
		return outer;
	}

}
